/**
 *
 */
package jp.seraph.jsmf.codec;

import java.util.ArrayList;
import java.util.List;

import jp.seraph.jsmf.motion.Motion;
import jp.seraph.jsmf.motion.MotionSession;

/**
 *
 *
 */
public class LinkMotionUtils {
    private LinkMotionUtils(){

    }

    public static Iterable<PoseNameLinkMotionElement> getMainElements(Motion aMotion){
        List<PoseNameLinkMotionElement> tResult = new ArrayList<PoseNameLinkMotionElement>();

        for (MotionSession tSession : aMotion) {
            PoseNameLinkMotionElement tElement = (PoseNameLinkMotionElement)tSession.toElementList().get(0);
            tResult.add(tElement);
        }

        return tResult;
    }
}
